Kameleon-Plus  0.3.2
Public Member Functions | List of all members
ccmc::OpenGGCMInterpolator Class Reference

TODO: Brief description of OpenGGCMInterpolator class. More...

#include <ccmc/OpenGGCMInterpolator.h>

Inheritance diagram for ccmc::OpenGGCMInterpolator:
Inheritance graph
[legend]
Collaboration diagram for ccmc::OpenGGCMInterpolator:
Collaboration graph
[legend]

Public Member Functions

 OpenGGCMInterpolator (Model *modelReader)
 
float interpolate (const std::string &variable, const float &c0, const float &c1, const float &c2)
 
float interpolate (const std::string &variable, const float &c0, const float &c1, const float &c2, float &dc0, float &dc1, float &dc2)
 
float interpolate (const long &variable_id, const float &c0, const float &c1, const float &c2)
 
float interpolate (const long &variable_id, const float &c0, const float &c1, const float &c2, float &dc0, float &dc1, float &dc2)
 
float getConversionFactor (const std::string &)
 
float getConversionFactor (const long &variable_id)
 
virtual ~OpenGGCMInterpolator ()
 
- Public Member Functions inherited from ccmc::Interpolator
 Interpolator ()
 
std::string getModelName ()
 
virtual ~Interpolator ()
 
void setModelReader (Model *reader)
 

Additional Inherited Members

- Protected Attributes inherited from ccmc::Interpolator
ModelmodelReader
 
std::string modelName
 

Detailed Description

TODO: Brief description of OpenGGCMInterpolator class.

TODO: Full description of OpenGGCMInterpolator class

Constructor & Destructor Documentation

ccmc::OpenGGCMInterpolator::OpenGGCMInterpolator ( Model modelReader)

Constructor

Parameters
modelReader

Here is the call graph for this function:

ccmc::OpenGGCMInterpolator::~OpenGGCMInterpolator ( )
virtual

Destructor

Member Function Documentation

float ccmc::OpenGGCMInterpolator::getConversionFactor ( const std::string &  variable)
virtual

Creates the cell with the necessary values to interpolate the correct value at position (c0,c1,c2).

6_____7
/|    /|
4_|___5 |
| |   | |
| 2 - - 3
|/    |/
0 - - 1
Parameters
variable
c0
c1
c2
Returns
The cell values necessary for inteprolating the value at position (c0,c1,c2).
Parameters
variable
Returns

Reimplemented from ccmc::Interpolator.

float ccmc::OpenGGCMInterpolator::getConversionFactor ( const long &  variable_id)
virtual
Parameters
variable_id
Returns

Reimplemented from ccmc::Interpolator.

float ccmc::OpenGGCMInterpolator::interpolate ( const std::string &  variable,
const float &  c0,
const float &  c1,
const float &  c2 
)
virtual
Parameters
variable
c0
c1
c2
Returns

Implements ccmc::Interpolator.

Here is the call graph for this function:

float ccmc::OpenGGCMInterpolator::interpolate ( const std::string &  variable,
const float &  c0,
const float &  c1,
const float &  c2,
float &  dc0,
float &  dc1,
float &  dc2 
)
virtual
Parameters
variable
c0
c1
c2
dc0Reference to a variable to store the delta for component 0
dc1Reference to a variable to store the delta for component 1
dc2Reference to a variable to store the delta for component 2
Returns
The interpolated value at position (c0,c1,c2) with deltas (dc0,dc1,dc2)

Implements ccmc::Interpolator.

Here is the call graph for this function:

float ccmc::OpenGGCMInterpolator::interpolate ( const long &  variable_id,
const float &  c0,
const float &  c1,
const float &  c2 
)
virtual
Parameters
variable_id
c0
c1
c2
Returns

Implements ccmc::Interpolator.

Here is the call graph for this function:

float ccmc::OpenGGCMInterpolator::interpolate ( const long &  variable_id,
const float &  c0,
const float &  c1,
const float &  c2,
float &  dc0,
float &  dc1,
float &  dc2 
)
virtual
Parameters
variable_id
c0
c1
c2
dc0Reference to a variable to store the delta for component 0
dc1Reference to a variable to store the delta for component 1
dc2Reference to a variable to store the delta for component 2
Returns
The interpolated value at position (c0,c1,c2) with deltas (dc0,dc1,dc2)

Implements ccmc::Interpolator.

Here is the call graph for this function:


The documentation for this class was generated from the following files: